package com.example.book_recommend.dao;

import com.example.book_recommend.entity.BookCluster;
import io.swagger.models.auth.In;

import java.util.ArrayList;

public interface BookClusterMapper {
    int deleteByPrimaryKey(Long bookId);

    int insert(BookCluster record);

    int insertSelective(BookCluster record);

    BookCluster selectByPrimaryKey(Long bookId);

    int updateByPrimaryKeySelective(BookCluster record);

    int updateByPrimaryKey(BookCluster record);

    ArrayList<BookCluster> selectByAttr1(int attr1, int page, int size);

    ArrayList<BookCluster> selectByAttr2(int attr2, int page, int size);

    ArrayList<BookCluster> selectByRan(int size);
}